<?php

namespace app\servercoding\service\coding;
use app\manage\service\ApiBase;

/**
 * @author:      李颖
 * @DateTime:    2017-06-21 14:18:14
 * @Description: 获取编码
 */

class Coding extends ApiBase
{
	
	protected $codingLogic = 'app\servercoding\logic\Coding';
    protected $codingValidate = 'app\servercoding\validate\Coding';
    
    //获取单个编码 获取亚数或艺货的
    public function getCoding(): array 
    {
        $data = $this->haveIssetReceiveData(['app_id'=>0, 'type'=>' ']);
        return $this->stepRun($data, 'getCoding');
    }

    /*根据不同的id获取相应的编码*/
    public function getCodingByIds(): array 
    {
    	$data = $this->haveIssetReceiveData(['app_id'=>0, 'type'=>' ', 'count'=>0]);
    	return $this->stepRun($data, 'getCodingByIds');
    }
    
}






